import request from '@/utils/request'

// 查询baseFile列表
export function listBaseFile(query) {
  return request({
    url: '/system/baseFile/list',
    method: 'get',
    params: query
  })
}

// 查询baseFile详细
export function getBaseFile(id) {
  return request({
    url: '/system/baseFile/' + id,
    method: 'get'
  })
}

// 新增baseFile
export function addBaseFile(data) {
  return request({
    url: '/system/baseFile',
    method: 'post',
    data: data
  })
}

// 修改baseFile
export function updateBaseFile(data) {
  return request({
    url: '/system/baseFile',
    method: 'put',
    data: data
  })
}

// 删除baseFile
export function delBaseFile(id) {
  return request({
    url: '/system/baseFile/' + id,
    method: 'delete'
  })
}


// 用户头像上传
export function uploadFile(data) {
  return request({
    url: '/system/baseFile/upload',
    method: 'post',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    data: data
  })
}